import java.util.Scanner;

public class Test19092301 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int F=scanner.nextInt();
		float c;
		c=(F-32)*5/9;
		 System.out.printf("%,4f",c);
		scanner.close();
	
	}
}




